package com.xiaoyi.query;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xiaoyi
 * @version 1.0.0
 * @date 2023/02/24 16:46:00
 */
public class SqlHolder {
    private String sql;
    private List<Object> paramsList = new ArrayList<>();

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public List<Object> getParamsList() {
        return paramsList;
    }

    public void setParamsList(List<Object> paramsList) {
        this.paramsList = paramsList;
    }
    public void addParams(Object o) {
        this.paramsList.add(o);
    }
    public void addAllParams(List<Object> o) {
        this.paramsList.addAll(o);
    }
}
